*** Combine main effects

cd /homes/nber/jetson-dua52260/poterba-DUA52260/jetson-dua52260
graph combine outliers/synth/100pct/graphs/OutliersOverlay.gph  botox/synth/100pct/graphs/BotoxOverlay.gph, l1title("$/Month") graphregion(color(white)) saving("multipanel/main_top.gph", replace)
graph combine kyphon/synthcontrolsshort/100pct/graphs/KyphoShortOverlay.gph ipop/graphs/chsOverlay.gph, l1title("$/Month") graphregion(color(white))   saving("multipanel/main_bottom.gph", replace)
graph combine "multipanel/main_top.gph" "multipanel/main_bottom.gph", graphregion(color(white)) col(1)
graph save "multipanel/main_effects.gph", replace

*** Manually edit 
cd /homes/nber/jetson-dua52260/poterba-DUA52260/jetson-dua52260
graph use "multipanel/main_effects"
* Make changes in graph editor
	* Y axis title: Remove $/month in each
	* Red lines to dashed
	* Consistent format Y axis label to "Mil"
graph save "multipanel/main_effects", replace 


graph export "MultiPanel_MainEffects.pdf", replace

scp jetson-dua52260@age1.nber.org:/homes/nber/jetson-dua52260/poterba-DUA52260/jetson-dua52260/multipanel/MultiPanel_MainEffects.pdf /users/jetson/desktop


************************************************************
*** Combine substitution effects

cd /homes/nber/jetson-dua52260/poterba-DUA52260/jetson-dua52260
graph combine kyphon/substitutes/graphs/KyphoSubstituteOverlay.gph ipop/substitutes/graphs/chsOverlay.gph, l1title("$/Month") xsize(10) saving("multipanel/substitutes.gph", replace) 

*** Manually edit 
cd /homes/nber/jetson-dua52260/poterba-DUA52260/jetson-dua52260
graph use "multipanel/substitutes.gph"
* Make changes in graph editor
	* Y axis title: Remove $/month in each
	* Make sure time starts at 02 each
	* Background to white 
	* Consistent format Y axis label to "Mil"
	* Change CHS to "Outpatient  at CHS"
	* Change Kypho to "Outpatient Spine Procedures"
	* Background colors to white
	* Red lines to dashed
	* Same scale as main effects: 0-50 mil for kypho, 0 -200 mil for IPOP
		*** Add sub headers

graph save "multipanel/substitutes", replace 

graph export "multipanel/MultiPanel_Substitutes.pdf", replace



